package cn.com.zonesion.rfiddemo.bean;

/**
 * 该类对象表示一个指令以及指令的作用.
 */

public class InstructionBean {

    private String instruction;//指令的名称
    private String role;//指令的作用

    public InstructionBean() {//空参构造
    }

    public InstructionBean(String instruction, String role) {//全参构造
        this.instruction = instruction;
        this.role = role;
    }

    public void setInstruction(String instruction) {
        this.instruction = instruction;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getInstruction() {
        return instruction;
    }

    public String getRole() {
        return role;
    }

    //重写后的toString方法
    @Override
    public String toString() {
        return "InstructionBean{" +
                "instruction='" + instruction + '\'' +
                ", role='" + role + '\'' +
                '}';
    }
}
